<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		a{
			text-decoration: none;
			color: #666;
			margin-right: 10px;
		}
		a:hover{
			text-decoration: underline;
			color: #333;
		}
		th{
			color: #F6E4A5;
			background: #4C6080;
		}
		td{
			text-align: center;
		}
	</style>
</head>
<body>
	<table border="1" width="100%" height="100%" cellspacing="0">
		<tr>
			<th>cid</th>
			<th>栏目名称</th>
			<th>操作</th>
		</tr>
		{hd:section name=d loop=$data}
		<tr>
			<td>{hd:$data[d].cid}</td>
			<td>{hd:$data[d].catname}</td>
			<td>
				<a href="{hd:$smarty.const.__CONTROLLER__}&a=edit&cid={hd:$data[d].cid}">编辑</a>
				<a href="{hd:$smarty.const.__CONTROLLER__}&a=del&cid={hd:$data[d].cid}" onclick="return confirm('您确定删除这个栏目么？')">删除</a>
			</td>
		</tr>
		{hd:/section}
	</table>
</body>
</html>